import { get } from '@/utils/request'

/**
 * 获取url
 * @param {*} params
 * @returns
 */
export const getSsoUrl = (params = { url: '' }) => {
  return get('/app/api/sso/getSsoUrl', params)
}
/**
 * 登出
 * @param {*} params
 * @returns
 */
export const logout = (params) => {
  return get('/app/api/sso/logout', params)
}

/**
 * 授权登录
 * @param {*} params
 * @returns
 */
export const getSsoToken = (params) => {
  return get('/app/api/sso/validateAccessToken', params)
}
